import { createWebHistory, createRouter } from 'vue-router'
import homea from '../vitws/homea.vue'
import homeb from '../vitws/homeb.vue'
import homec from '../vitws/homec.vue'
import homed from '../vitws/homed.vue'
import homee from '../vitws/homee.vue'
const routes = [
    { path: '/', redirect: '/homea' },
    {
        path: '/homea', component: homea,
        children: [
            { path: 'homeb', component: homeb },
            { path: 'homec', component: homec },
            { path: 'homed', component: homed },
            { path: 'homee', component: homee },
        ]
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes,
})
export default router